package com.xiaotao.learn.loader.testclass;

public class HasInnerClass {
    static {
        System.out.println("静态代码块");
    }

    private static class DefaultInnerClass {
        static {
            System.out.println("私有默认内部类静态代码块");
        }
    }

    private static class PrivateInnerClass {
        static {
            System.out.println("私有内部类静态代码块");
        }
        public final static HasInnerClass inst = new HasInnerClass();
    }

    public static class PublicInnerClass {
        static {
            System.out.println("公有内部类静态代码块");
        }
        public final static HasInnerClass inst = new HasInnerClass();
    }

    public static void active() {
        HasInnerClass a = PrivateInnerClass.inst;
        a = PublicInnerClass.inst;
        new DefaultInnerClass();
    }
}
